<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <!-- <meta name="viewport" content="width=device-width, initial-scale=1.0"> -->
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1,minimum-scale=1,user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title><%= __('hy') %></title>
    <link href="/image/favicon.ico" rel="shortcut icon">
    <link rel="stylesheet" href="//at.alicdn.com/t/font_607959_8t0w2txptnj.css">
    <link rel="stylesheet" href="/mcss/base.css">
    <link rel="stylesheet" href="/mcss/withdraw.css">
    <link rel="stylesheet" href="/mcss/userInfo.css">
</head>
<body>
    <%- include('base/mheader'); %>
    <div class="withdraw_wrap">
        <%- include('base/muserInfo'); %>
        <% if(allMine.length){ %>
            <% allMine.forEach( (item,index) => { %>
            <div :class="['withdraw',{'hidden':cointype != '<%- item.coin %>'}]">
                <div class="w_address">
                    <% if (item.withdrawAddress && item.withdrawAddress!=null) { %>
                    <input type="text" :value="withdrawaddress==''?'<%- item.withdrawAddress %>':withdrawaddress" class="adressValue<%- index %>" :disabled="!changeaddress">
                    <% } else{ %>
                    <input type="text" :value="withdrawaddress==''?'<%- item.withdrawAddress %>':withdrawaddress" class="adressValue<%- index %>" :disabled="!changeaddress" :placeholder="changeaddress==0?'<%= __('addrholder') %>':''">
                    <% } %> 
                    <% if (item.withdrawAddress && item.withdrawAddress!=null) { %>
                    <div class="modify_btn" @click="stcAdress(true,'<%- index %>','<%- item.coin %>')" v-if="changeaddress==0"> <%= __('modify') %></div>
                    <div class="modify_btn clear" v-if="changeaddress==1">
                        <div class="fl" @click="stcAdress(false,'<%- index %>','<%- item.coin %>')"><%= __('determine') %></div>
                        <div class="fl" @click="stcAdress(false,'<%- index %>',null)"><%= __('cancel') %></div>
                    </div>
                    <% } else{ %>
                    <div class="modify_btn" @click="stcAdress(true,'<%- index %>','<%- item.coin %>')" v-if="changeaddress==0" v-html="Setup"></div>
                    <div class="modify_btn clear" v-if="changeaddress==1">
                        <div class="fl" @click="stcAdress(false,'<%- index %>','<%- item.coin %>')"><%= __('determine') %></div>
                        <div class="fl" @click="stcAdress(false,'<%- index %>',null)"><%= __('cancel') %></div>
                    </div>
                    <% } %>
                </div>
                <div class="w_items">
                    <span class="w_items_tit"><%= __('withdrawalamount') %></span>
                    <input type="text" class="w_items_num" v-model="coinbalcaasdas">
                    <input type="hidden" value="<%- item.balance %>" class="inpit<%- index %>">
                </div>
                <div class="w_items">
                    <span class="w_items_tit"><%= __('rate') %></span>
                    <span class="w_items_num">0.5%</span>
                </div>
                <div class="w_items">
                    <span class="w_items_tit"><%= __('serviceCharge') %></span>
                    <span class="w_items_num" v-html="fee"></span>
                </div>
                <div class="w_button">
                    <input type="button" class="w_btn" @click="cashWidthdraw('<%- index %>','<%- item.coin %>')"  :disabled="Prohibited" value="<%= __('withdraw') %>">
                </div>
                <div class="w_hint">
                    <p><%= __('warmPrompt') %></p>
                    <p><%= __('Firstwithdrawal') %></p>
                    <p><%= __('Confirmaddress') %></p>
                    <p><%= __('audit') %></p>
                    <% if(item.coin=='HPS'){ %>
                    <p><%= __('Networkcommission') %></p >
                    <% } %>
                    <% if(item.coin=='ETH'){ %>
                    <p><%= __('Networkcommissionone') %></p >
                    <% } %>
                    <% if(item.coin=='BTC'){ %>
                    <p><%= __('Networkcommissiontwo') %></p >
                    <% } %>
                    <% if(item.coin=='HSR'){ %>
                    <p><%= __('Networkcommission3') %></p >
                    <% } %>
                    <% if(item.coin=='HAND'){ %>
                    <p><%= __('Networkcommission4') %></p >
                    <% } %>
                    <% if(item.coin=='HART'){ %>
                    <p><%= __('Networkcommission5') %></p >
                    <% } %>
                    <% if(item.coin=='MOT'){ %>
                    <p><%= __('Networkcommission6') %></p >
                    <% } %>
                    <p><%= __('enoughone') %></p>
                </div>
            </div>
            <% }) %>
        <% } %>
    </div>
</body>
</html>
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.js"></script>
<script async src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="/mjs/withdraw.js"></script>